package util;

public class EmailCheck {
    public static boolean checkEmail(String email) {
        String regex = "[a-zA-Z0-9_]*@[a-zA-Z0-9]+[.][a-zA-Z0-9]+";
        if (email.matches(regex)) {
            System.out.println("合法邮箱地址");
            return true;
        } else {
            System.out.println("不合法邮箱地址");
            return false;
        }
    }
}
